<?php
/**
 * Clase del formulario FrmThemes que permite elegir el tema de la aplicació
 */
class FrmThemes{
	private $setter;
	private $easyForm;

	function FrmThemes(){
		$this->setter=new Setter("../../Config");
		
		$this->easyForm=new EasyForm("frmThemes","frmThemes","post", "../../Events/Admin/EventsFrmThemes.php","Elije un theme:","", "", "");
		$this->easyForm->addSelectionList(1,"themes:","themes", "themes", "form", "", "", "", "", array());
		$this->easyForm->setOptionsSelectionList($label="themes:", $optionsSelectionList=$this->setter->getAvailableThemes("../../Themes"), $selected=$this->setter->getTheme());
		
		$this->easyForm->addButton(1,"","okTheme","okTheme","","elegir","aceptar","button","","button","","","","","",array("onClick"=>"GETMethodSend('themes',this.id,'adminContent','../../Events/Admin/EventsFrmThemes.php')"));
	}
	function show(){
		$this->easyForm->show(2,1);
	}
}

?>